package cn.lyh.gulimall.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
/**
    * 秒杀活动商品关联
    */
@Data
@TableName(value = "sms_seckill_sku_relation")
public class SmsSeckillSkuRelation {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 活动id
     */
    @TableField(value = "promotion_id")
    private Long promotionId;

    /**
     * 活动场次id
     */
    @TableField(value = "promotion_session_id")
    private Long promotionSessionId;

    /**
     * 商品id
     */
    @TableField(value = "sku_id")
    private Long skuId;

    /**
     * 秒杀价格
     */
    @TableField(value = "seckill_price")
    private Long seckillPrice;

    /**
     * 秒杀总量
     */
    @TableField(value = "seckill_count")
    private Long seckillCount;

    /**
     * 每人限购数量
     */
    @TableField(value = "seckill_limit")
    private Long seckillLimit;

    /**
     * 排序
     */
    @TableField(value = "seckill_sort")
    private Integer seckillSort;

    public static final String COL_ID = "id";

    public static final String COL_PROMOTION_ID = "promotion_id";

    public static final String COL_PROMOTION_SESSION_ID = "promotion_session_id";

    public static final String COL_SKU_ID = "sku_id";

    public static final String COL_SECKILL_PRICE = "seckill_price";

    public static final String COL_SECKILL_COUNT = "seckill_count";

    public static final String COL_SECKILL_LIMIT = "seckill_limit";

    public static final String COL_SECKILL_SORT = "seckill_sort";
}